package com.google.code.sapwcrawler.data;
import java.util.*;
import java.net.*;

import com.google.code.sapwcrawler.data.html.Link;

public class ParsedHtml
{
	private List<Link> links;
	private String title;
	private BinaryData data;
	private String html;
	
	public ParsedHtml(BinaryData data,String title,List<Link> links)
	{
		this.data = data;
		this.html = data.toHtml();
		this.title = title;
		this.links = links;
	}
	
	public String getTitle()
	{
		return title;
	}
	
	public List<Link> getLinks()
	{
		return links;
	}
	
	public URL getUrl()
	{
		return data.getFrom();
	}
	
	public String getHtml()
	{
		return html;
	}
}
